import request from '@/utils/request';

// 获取数据列表
export const shopList = (data) => {
  return request({
    method: 'POST',
    url: '/shop/anyShop',
    data,
  });
};
// 用户添加
export const shopUpdate = (data) => {
  return request({
    method: 'POST',
    url: '/shop/Updates',
    data,
  });
};
// 数据详情
export const shopDate = (id) => {
  return request({
    method: 'GET',
    url: `/shop/${id}`,
  });
};
// 更新接口
export const shopSave = (data) => {
  return request({
    method: 'POST',
    url: '/shop/shopSaves',
    data,
  });
};
// 删除接口
export const shopRemove = (id) => {
  return request({
    method: 'DELETE',
    url: `/shop/${id}`,
  });
};
